/**
 * jims
 */
package com.jims.master.modules.csm.entity;

import com.jims.master.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.beans.Transient;

/**
 * 消耗品字典维护Entity
 * @author zhuq
 * @version 2017-03-02
 */
public class ExpDict extends DataEntity<ExpDict> {

    private static final long serialVersionUID = 1L;
    private String expCode;		// 消耗品代码
    private String expName;		// 消耗品名称
    private String expSpec;		// 规格
    private String units;		// 单位
    private String dosePerUnit;		// 基本单位数量
    private String doseUnits;		// 基本单位
    private String htcaClass;   //全成本分类
    private String expModel;  //型号
    private String expIndicator;		// 材质
    private String expContent;     //含量/有效成分
    private String expSize;   //尺寸
    private String inputCode;		// 输入码
    private String stopFlag;		// 停用标志 1-停用
    private ExpNameDict expNameDict;
    private String expClassID;
    public ExpNameDict getExpNameDict() {
        return expNameDict;
    }

    public void setExpNameDict(ExpNameDict expNameDict) {
        this.expNameDict = expNameDict;
    }

    public ExpDict() {
        super();
    }

    public ExpDict(String id){
        super(id);
    }
    @Transient
    public String getExpClassID() {
        return expClassID;
    }
    @Transient
    public void setExpClassID(String expClassID) {
        this.expClassID = expClassID;
    }

    @Length(min=1, max=20, message="消耗品代码长度必须介于 1 和 20 之间")
    public String getExpCode() {
        return expCode;
    }

    public void setExpCode(String expCode) {
        this.expCode = expCode;
    }

    @Length(min=1, max=100, message="消耗品名称长度必须介于 1 和 100 之间")
    public String getExpName() {
        return expName;
    }

    public void setExpName(String expName) {
        this.expName = expName;
    }

    @Length(min=1, max=20, message="规格长度必须介于 1 和 20 之间")
    public String getExpSpec() {
        return expSpec;
    }

    public void setExpSpec(String expSpec) {
        this.expSpec = expSpec;
    }

    @Length(min=1, max=2, message="单位长度必须介于 1 和 2 之间")
    public String getUnits() {
        return units;
    }

    public void setUnits(String units) {
        this.units = units;
    }

    public String getDosePerUnit() {
        return dosePerUnit;
    }

    public void setDosePerUnit(String dosePerUnit) {
        this.dosePerUnit = dosePerUnit;
    }

    @Length(min=1, max=2, message="剂量单位长度必须介于 1 和 2 之间")
    public String getDoseUnits() {
        return doseUnits;
    }

    public void setDoseUnits(String doseUnits) {
        this.doseUnits = doseUnits;
    }

    @Length(min=0, max=50, message="输入码长度必须介于 0 和 50 之间")
    public String getInputCode() {
        return inputCode;
    }

    public void setInputCode(String inputCode) {
        this.inputCode = inputCode;
    }

    @Length(min=0, max=1, message="停消耗标志 1-停消耗长度必须介于 0 和 1 之间")
    public String getStopFlag() {
        return stopFlag;
    }

    public void setStopFlag(String stopFlag) {
        this.stopFlag = stopFlag;
    }

    public String getExpIndicator() {
        return expIndicator;
    }

    public void setExpIndicator(String expIndicator) {
        this.expIndicator = expIndicator;
    }

    public String getHtcaClass() {
        return htcaClass;
    }

    public void setHtcaClass(String htcaClass) {
        this.htcaClass = htcaClass;
    }

    public String getExpModel() {
        return expModel;
    }

    public void setExpModel(String expModel) {
        this.expModel = expModel;
    }

    public String getExpContent() {
        return expContent;
    }

    public void setExpContent(String expContent) {
        this.expContent = expContent;
    }

    public String getExpSize() {
        return expSize;
    }

    public void setExpSize(String expSize) {
        this.expSize = expSize;
    }
}